fs = require("fs")
path = require("path")

df = (dir, ext, callback) ->
  fs.readdir dir, (error, files)->
    return callback error if error
    fs = (f for f in files when path.extname(f) == ext)
    return callback(null,fs)

module.exports = df
